package com.ruoyi.performancecomparisons.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performancecomparisons.mapper.PerformancecomparisonsMapper;
import com.ruoyi.performancecomparisons.domain.Performancecomparisons;
import com.ruoyi.performancecomparisons.service.IPerformancecomparisonsService;

/**
 * 模板管理Service业务层处理
 * 
 * @author yxy
 * @date 2024-10-31
 */
@Service
public class PerformancecomparisonsServiceImpl implements IPerformancecomparisonsService 
{
    @Autowired
    private PerformancecomparisonsMapper performancecomparisonsMapper;

    /**
     * 查询模板管理
     * 
     * @param id 模板管理主键
     * @return 模板管理
     */
    @Override
    public Performancecomparisons selectPerformancecomparisonsById(Long id)
    {
        return performancecomparisonsMapper.selectPerformancecomparisonsById(id);
    }

    /**
     * 查询模板管理列表
     * 
     * @param performancecomparisons 模板管理
     * @return 模板管理
     */
    @Override
    public List<Performancecomparisons> selectPerformancecomparisonsList(Performancecomparisons performancecomparisons)
    {
        return performancecomparisonsMapper.selectPerformancecomparisonsList(performancecomparisons);
    }

    /**
     * 新增模板管理
     * 
     * @param performancecomparisons 模板管理
     * @return 结果
     */
    @Override
    public int insertPerformancecomparisons(Performancecomparisons performancecomparisons)
    {
        return performancecomparisonsMapper.insertPerformancecomparisons(performancecomparisons);
    }

    /**
     * 修改模板管理
     * 
     * @param performancecomparisons 模板管理
     * @return 结果
     */
    @Override
    public int updatePerformancecomparisons(Performancecomparisons performancecomparisons)
    {
        return performancecomparisonsMapper.updatePerformancecomparisons(performancecomparisons);
    }

    /**
     * 批量删除模板管理
     * 
     * @param ids 需要删除的模板管理主键
     * @return 结果
     */
    @Override
    public int deletePerformancecomparisonsByIds(Long[] ids)
    {
        return performancecomparisonsMapper.deletePerformancecomparisonsByIds(ids);
    }

    /**
     * 删除模板管理信息
     * 
     * @param id 模板管理主键
     * @return 结果
     */
    @Override
    public int deletePerformancecomparisonsById(Long id)
    {
        return performancecomparisonsMapper.deletePerformancecomparisonsById(id);
    }
}
